import request from "@/utils/request";

export function fetchList(params) {
  return request({
    url: "/wx-template/v1/list",
    method: "get",
    params: params,
  });
}

export function deleteRobotHandle(id) {
  return request({
    url: "/wx-template/v1/delete/" + id,
    method: "delete",
  });
}

export function createRobotHandle(data) {
  return request({
    url: "/wx-template/v1/create",
    method: "post",
    data: data,
  });
}

export function updateRobotHandle(id, data) {
  return request({
    url: "/wx-template/v1/update",
    method: "put",
    data: data,
  });
}
export function selectById(id) {
  return request({
    url: "/wx-template/v1/getOne/" + id,
    method: "get",
  });
}
